<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title><h:outputText value="#{index.constant.siteName}" /></title>
</h:head>

<h:body>
	<table border="1">
		<tr>
			<td>()栏目管理</td>
		</tr>
		<tr>
			<td>发布信息 | 我发布的信息 | 审核 | 管理 | 回收站 | 碎片 | 搜索</td>
		</tr>
	</table>
	<table border="1">
		<tr>
			<td>信息查询</td>
		</tr>
		<tr>
			<td>标题 <h:inputText></h:inputText> 时间:从<h:inputText></h:inputText>到<h:inputText></h:inputText>
			</td>
		</tr>
	</table>
	<h:selectManyCheckbox>
		<f:selectItems value="#{categoryBean.selectItemList}" var="category">
		</f:selectItems>
	</h:selectManyCheckbox>
	<h:form>
		<h:selectManyCheckbox>
			<h:dataTable value="#{articleBean.model}" var="article">
				<h:column>
					<f:facet name="header">
						<h:outputText value="选中"></h:outputText>
					</f:facet>
					<f:selectItem itemLabel="s" itemValue="#{article.id.id}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="parent" />
					</f:facet>
					<h:outputText value="#{article.key.parent.id}"></h:outputText>
				</h:column>
				<h:column>
					<f:facet name="key">
						<h:outputText value="parent" />
					</f:facet>
					<h:outputText value="#{article.key}"></h:outputText>
				</h:column>
				<h:column>
					<f:facet name="d">
						<h:outputText value="parentsss" />
					</f:facet>
					<h:outputText value="#{article.details.text}"></h:outputText>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="id" />
					</f:facet>
					<h:outputText value="#{article.key.id}"></h:outputText>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="标题" />
					</f:facet>
					<h:outputText value="#{article.title}"></h:outputText>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="作者" />
					</f:facet>
					<h:outputText value="#{article.author}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="更新时间" />
					</f:facet>
					<h:outputText value="#{article.editDate}">
						<f:convertDateTime />
					</h:outputText>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="操作"></h:outputText>
					</f:facet>
					<h:commandButton value="修改" action="#{articleBean.submit}">
						<f:param name="id" value="#{article.key.id}"></f:param>
						<f:param name="categoryId" value="#{article.key.parent.id}"></f:param>
					</h:commandButton>
					<h:commandButton value="删除" onclick="">
						<f:param name="categoryId" value="#{article.key.parent.id}"></f:param>
						<f:param name="id" value="#{article.key.id}"></f:param>
						<f:actionListener binding="#{articleBean.del}" />
					</h:commandButton>
					<h:commandButton value="删除2" actionListener="#{articleBean.del }" >
					</h:commandButton>
					评论
				</h:column>
			</h:dataTable>
		</h:selectManyCheckbox>
	</h:form>
</h:body>
</html>